< previous page page_691 next page >

Page 691
Steps for Creating Distribution Media
No matter which tool you use to create a distribution of your application, youll always go through certain steps. The P&D Wizard automates many of these steps for you.
Step 1: Create Your Application
You need to compile your application into an EXE file that can then be packed along with all the other files needed in order for your users to run your program.
Step 2: Decide on a Distribution Media
Windows applications are typically packaged on CD-ROM mediaCD-ROMs hold a lot of data, and Windows applications tend to be quite large. You may choose to distribute your application on floppy disks, from a network shared drive, or even across the Internet.
Step 3: Figure Out Which Files Need to Be Distributed
Figuring out which files need to be distributed with your EXE file can be a daunting process. Luckily, the P&D Wizard greatly automates this process for you. The P&D Wizard relies on dependency files to figure out which files you need. A dependency file is simply an INI-style text file that describes a list of files needed to work with a DLL or OCX file. The main dependency file for Visual Basic applications is VB6DEP.INI. You can create your own dependency files for any components (DLLs or OCXs) that you create using the P&D Wizard.
Step 4: Determine Where the Files Will Reside on the User's Machine
You install the files in your setup program on the users machine in basically two different locations:
The folder where your application is installed
In the \Windows\System or \Windows\System32 folder
Your program and setup files are generally installed in the folder underneath the Program Files folder or your own folder you create off the root drive. Of course, that is just a suggested locationthe user can change this location when he or she installs the program. Any general-purpose DLLs or OCXs are usually installed in the \Windows\System on Win95/98 or in the \WINNT\System32 folder on Windows NT.

 
< previous page page_691 next page >

If you like this book, buy it!